<?php

namespace App\Admin;

use Illuminate\Database\Eloquent\Model;

class Test extends Model
{
    //定义表
    protected $table  = 'test';
    public $timestamps = false;
    public function member(){
    	return $this->hasOne('\App\Admin\Member','id','member_id');
    }
    public function paper(){
    	return $this->hasMany('\App\Admin\Paper','id','error_ids');
    }
    protected $fillable = [
        'id', 'error_ids','member_id','score','addtime','during','isdel',
    ];
}
